<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>更新商品</title>
    <link rel="stylesheet" href="layui/css/layui.css" class="css">
    <link rel="stylesheet" href="css/addItem.css" class="css">
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="layui/layui.js"></script>
    <script src="js/addItem.js"></script>
</head>
<body>

<div class="layui-container">
    <form class="layui-form" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">产品名称</label>
            <div class="layui-input-block">
                <input id="name" type="text" lay-verify="required" placeholder="请输入产品名称，如：HUAWEI Mate 50E"
                       class="layui-input">
            </div>
        </div>


        <div  class="layui-form-item">
            <label id="labelCategory" class="layui-form-label">产品类别</label>
            <div id="divCategory" class="layui-input-block">
                <select id="category" lay-verify="required" lay-filter="selectCategory">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label id="labelProduct" class="layui-form-label">产品系列</label>
            <div id="divProduct" class="layui-input-block">
                <select id="product" lay-verify="required" lay-filter="selectProduct">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">选择文件</label>
            <div class="upload layui-block">
                <input id="uploadImg" type="file" value="上传文件" lay-verify="required" accept="image/png, image/jpeg">
            </div>
<!--            <img id="image" src="" alt="">-->
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">版本号</label>
            <div class="layui-input-block">
                <input id="version" type="text" lay-verify="required" placeholder="请输入版本号，如：256GB,没有则为空"
                       class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">颜色</label>
            <div class="layui-input-block">
                <input id="color" type="text" lay-verify="required" placeholder="请填写产品颜色" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">单价</label>
            <div class="layui-input-block">
                <input id="price" type="text" lay-verify="required" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">数量</label>
            <div class="layui-input-block">
                <input id="count" type="text" lay-verify="required" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button id="submit" class="layui-btn lay-submit" lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>